import request from '@/utils/request.js'

// 获取头部导航列表
export function getCateList () {
  return request('/home/category/head', 'GET', {})
}

/**
 * @description: 获取分类数据
 * @param {*} id 分类id
 * @return {*}
 */
export function findTopCategory (id) {
  return request('/category', 'get', { id: id })
}
